package com.example.logistics_oa.dubbo;

import com.example.comment_oa.dubbo.SelectMaxAndMinDubbo;
import com.example.comment_oa.pojos.JobMakeoffer;
import com.example.logistics_oa.service.JobMakeofferService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;


@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class SelectMaxAndMinDubboImpl implements SelectMaxAndMinDubbo {

    @Resource
    JobMakeofferService jobMakeofferService;

    @Override
    public List<JobMakeoffer> selectMaxAndMinByZhiwuId(int jmoJobid) {
        return jobMakeofferService.selectMaxAndMinByZhiwuId(jmoJobid);
    }
}
